package com.dxy.lc.service.impl;

import com.dxy.lc.model.entity.MsgStatus;
import com.dxy.lc.mapper.MsgStatusMapper;
import com.dxy.lc.service.MsgStatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

/**
* <p>
*  服务实现类
* </p>
*
* @author dxy
* @since 2024-11-07
*/
@Slf4j
@Service
public class MsgStatusServiceImpl extends ServiceImpl<MsgStatusMapper, MsgStatus> implements MsgStatusService {


    @Override
    public long countUnreadMsg(Integer roomId, Integer userId) {
        return baseMapper.countUnreadMsg(roomId, userId);
    }
}
